package com.muapet.service;

import java.util.List;

import com.muapet.model.Admin;
import com.muapet.model.Privilege;

public interface IAdminService {
	Admin login(String loginname, String password);

	Integer addAdmin(Admin admin);
	
	boolean checkSameLoginname(String loginname);

	Integer updateAdmin(Admin admin);

	Admin findById(Integer id);

	List<Admin> listAdmins();

	Integer deleteAdmin(Integer id);

	List<Privilege> listPrivilegesInuse();

	List<Privilege> listAllPrivileges();

	Privilege findPrivilegeById(Integer id);

	Integer addPrivilege(Privilege privilege);
	
	boolean checkURL(String url);

	Integer updatePrivilege(Privilege privilege);

	Integer deletePrivilege(Integer id);
}
